package cn.hbu.zlfw.aspect.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * 
 *@ClassName:OperatorLogVo.java
 *@Description:  日志操作记录实体
 *@Author:lxt<839376636@qq.com>
 *@Date:2017年10月7日下午8:22:30
 *@Version:1.1.0
 */
@Entity
@Table(name="t_operator_log")
public class OperatorLogVo implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "id", length = 32)
	@GeneratedValue(generator = "UUID_KEY")
	@GenericGenerator(name = "UUID_KEY", strategy = "uuid.hex")
	private String id;
	
	@Column(name="userName",length=100)
	private String userName;
	
	@Column(name="userType",length=20)
	private Integer userType;
	
	@Column(name="operatorType",length=20)
	private String operatorType;
	
	@Column(name="description",length=100)
	private String description;
	
	@Column(name="delState",length=20,nullable=false)
	private Integer delState;	//删除状态,1表示已经删除，0表示未删除
	
	/**
	 * 额外信息待补全
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="createTime")
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	
	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getOperatorType() {
		return operatorType;
	}

	public void setOperatorType(String operatorType) {
		this.operatorType = operatorType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public Integer getDelState() {
		return delState;
	}

	public void setDelState(Integer delState) {
		this.delState = delState;
	}

	@Override
	public String toString() {
		return "OperatorLogVo [id=" + id + ", userName=" + userName + ", userType=" + userType + ", operatorType="
				+ operatorType + ", description=" + description + ", delState=" + delState + ", createTime="
				+ createTime + "]";
	}
}
